//
//  MainCategories.m
//  悠狸
//
//  Created by Grant on 15/8/30.
//  Copyright (c) 2015年 Dung. All rights reserved.
//

#import "MainCategories.h"

@implementation MainCategories

- (instancetype)initWithDic:(NSDictionary *)dic
{
    self = [super init];
    if (self != nil) {
        
        self.icon_url = [dic objectForKey:@"icon_url"];
        self.name = [dic objectForKey:@"name"];
        self.myId = [dic objectForKey:@"id"];
        self.order = [dic objectForKey:@"order"];
        self.status = [dic objectForKey:@"status"];
        self.subcategories = [dic objectForKey:@"subcategories"];
    }
    return self;
}

@end
